<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <script src="../../../js/vue.js"></script>
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
    <title>Axios应用程序</title>
</head>
<body>
<div id="app">
    <div>
        名称:{{ info.name }}
    </div>

    <div>
        URL:{{ info.url }}
    </div>
</div>
<script>

    import axios from "core-js/internals/queue";

    var app = new Vue({
        el: '#app',
        data() {
            return{
                info: {
                    name: '',
                    url:''
                }
            }
        },
        mounted() {
            axios
                .get('data.json')
                .then(response => this.info = response.data)
        }
    })
</script>
</body>
</html>